<template>
  <div class="tabbar">
    <van-tabbar v-model="active" route active-color="#d81e06" :z-index="2">
      <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="/trolley">购物车</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="/user">我的</van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="/todo">todo</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "TabBar",
  data() {
    return {
      active: 0
    };
  },
  computed: {},
  methods: {}
};
</script>
<style lang="scss" scoped>
</style>